#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class RoomRecord : Business.BusinessBase<RoomRecord, int>
	{
		#region Fields and Properties

		private String roomCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String RoomCode
		{
			get { return roomCode; }
			set
			{
				if (value != roomCode)
				{
					MarkChanged("RoomCode");
					roomCode = value;
				}
			}
		}

		private DateTime rcdDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime RcdDate
		{
			get { return rcdDate; }
			set
			{
				if (value != rcdDate)
				{
					MarkChanged("RcdDate");
					rcdDate = value;
				}
			}
		}

		private String handlerView = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String HandlerView
		{
			get { return handlerView; }
			set
			{
				if (value != handlerView)
				{
					MarkChanged("HandlerView");
					handlerView = value;
				}
			}
		}

		private String handlerName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String HandlerName
		{
			get { return handlerName; }
			set
			{
				if (value != handlerName)
				{
					MarkChanged("HandlerName");
					handlerName = value;
				}
			}
		}

		private String handlerCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String HandlerCode
		{
			get { return handlerCode; }
			set
			{
				if (value != handlerCode)
				{
					MarkChanged("HandlerCode");
					handlerCode = value;
				}
			}
		}

		private DateTime issueDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime IssueDate
		{
			get { return issueDate; }
			set
			{
				if (value != issueDate)
				{
					MarkChanged("IssueDate");
					issueDate = value;
				}
			}
		}

		private String rcdCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String RcdCate
		{
			get { return rcdCate; }
			set
			{
				if (value != rcdCate)
				{
					MarkChanged("RcdCate");
					rcdCate = value;
				}
			}
		}

		private String content = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Content
		{
			get { return content; }
			set
			{
				if (value != content)
				{
					MarkChanged("Content");
					content = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public RoomRecord()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override RoomRecord DataSelect(int id)
		{
			return Services.DALService.RoomRecordService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.RoomRecordService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.RoomRecordService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.RoomRecordService.Delete(this);
		}

		#endregion Base overrides
	}
}
